﻿@model AlbumSectionDetailsViewModel
@{
    ViewBag.Title = "פרויקט - " + Model.Album.Title + " - " + Model.AlbumSection.SectionTitle;
}
@section headElements{
    <link href="@Url.Content("~/Content/AlbumDetails.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/AlbumSectionDetails.js")" type="text/javascript"></script>
}
@Html.Hidden("AlbumSectionId", Model.AlbumSection.AlbumSectionId)
<ul id="Breadcrumbs">
    <li><a href="@Url.Action("Index", "Admin")">פאנל ניהול</a></li>
    <li><a href="@Url.Action("Index", "Albums")">פרויקטים</a></li>
    <li><a href="@Url.Action("Details", "Albums", new { id = Model.Album.AlbumId })">@Model.Album.Title</a></li>
    <li>@Model.AlbumSection.SectionTitle</li>
</ul>
<div id="divAlbumSectionActions" class="highlightedPanel">
    <a href="@Url.Action("Index", "Designer", new { AlbumId = Model.Album.AlbumId, AlbumSectionId = Model.AlbumSection.AlbumSectionId })" class="button">
        עצב מקטע</a> <a href="@Url.Action("Index", "Designer", new { AlbumId = Model.Album.AlbumId, AlbumSectionId = Model.AlbumSection.AlbumSectionId, designerAction = "Preview" })" class="button">
            תצוגה מקדימה</a> <a href="" class="button" id="btnSendForApproval">אישור מקטע</a>
    <div class="statusLabel">
        סטטוס נוכחי: @Model.AlbumSection.AlbumSectionStatus
    </div>
</div>
<div class="clear topSpace">
</div>
<div id="divEditorDetails" class="floatRight highlightedPanel">
    @using (Html.BeginForm())
    {
        <div class="title">
            פרטי עורך מקטע</div>
        <div class="fieldRow">
            <div class="label">
                סיסמת עורך</div>
            <div class="value">
                @Html.TextBoxFor(m => m.AlbumSection.EditorPassword)
            </div>
        </div>
        <div class="fieldRow">
            <div class="label">
                אימייל עורך</div>
            <div class="value">
                @Html.TextBoxFor(m => m.AlbumSection.EditorEmail)
                @Html.ValidationMessageFor(m => m.AlbumSection.EditorEmail)
            </div>
        </div>
        <div class="fieldRow">
            <div class="label">
                שם עורך</div>
            <div class="value">
                @Html.TextBoxFor(m => m.AlbumSection.EditorFirstName) @Html.TextBoxFor(m => m.AlbumSection.EditorLastName)</div>
        </div>
        <div class="fieldRow">
            <div class="label">
                טלפון</div>
            <div class="value">
                @Html.TextBoxFor(m => m.AlbumSection.EditorPhone)</div>
        </div>
        <div class="fieldRow">
            <div class="label">
                טלפון נייד
            </div>
            <div class="value">
                @Html.TextBoxFor(m => m.AlbumSection.EditorMobile)
            </div>
        </div>
        <div class="clear">
            <input type="button" value="עדכן" id="btnUpdateEditorDetails" class="button" />
        </div>
    }
</div>
